<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/mall-common :: common_head(~{::title},~{::link},~{::script})">
  <title>网上图书商城</title>
  <link rel="stylesheet" href="/styles/mall/shop-index.css">
  <script src="/javascript/mall/shop-index.js" type="text/javascript"></script>
</head>
<body>
<div th:replace="common/mall-common::mall-header"></div>
<div class="mall-body">
  <img th:src="${publish.logo}" class="shop-logo"/>
  <div class="shop-info">
    <div class="shop-title" th:text="${'欢迎来到' + publish.name + ' ! '}"></div>
    <div class="shop-title4" th:text="${'我们的口号是：' + publish.description + ' ！！！ '}"></div>
    <div class="shop-title3" th:text="${'营业时间：' + publish.time}"></div>
    <div class="shop-title2" th:text="${'联系电话：' + publish.phone}"></div>

    <div class="type-group-list">
      <div class="type-group-item">

        <div class="type-list">
          <a th:class="'type-item type-item-selected-'+${selectedTypeId.equals('')}"
             th:href="'/publish-index?id=' + ${publish.id}">
            <div class="type-name">全部分类</div>
          </a>
        </div>

      </div>
      <div class="type-group-item" th:each="group:${typeGroupList}">

        <div class="type-list">
          <a th:class="'type-item type-item-selected-'+${selectedTypeId.equals(type.id)}"
             th:each="type:${group.getBooksTypeList()}"
             th:href="'/publish-index?id=' + ${publish.id} + '&type=' + ${type.id}">
            <div class="type-name" th:text="${type.classification}"></div>
          </a>
        </div>
      </div>

    </div>

  </div>
  <div class="goods-area">
    <div th:if="${booksPageInfo.getList().size() == 0}" class="no-data-list">
      没有找到图书哦！
    </div>
    <a class="goods-item" th:each="books:${booksPageInfo.getList()}" th:href="${'/books-detail?id=' + books.id}">
      <img th:src="${books.getBooksSkuList().get(0).getBooksSkuImgList().get(0).getImage()}" class="goods-image"/>
      <div class="goods-info">
        <div class="goods-title-line">
          <div th:text="${books.name}" class="goods-name"></div>
         <div th:text="${books.getBooksSkuList().get(0).getCurrentPrice() + '元'}" class="goods-price"></div>
        </div>
        <div class="goods-place" th:text="'作者：' + ${books.author}"></div>
        <div class="belong-shop" th:text="'所属店铺：' + ${books.belongpublish.name}"></div>
        <div class="belong-shop" th:text="'原始价格：' + ${books.getBooksSkuList().get(0).getOriginalPrice() + '元'}" ></div>
        <div class="books-inventory" th:text="'库存：' + ${books.getBooksSkuList().get(0).inventory}"></div>
      </div>
    </a>
  </div>
  <div th:replace="common/mall-common :: common_pager(${booksPageInfo})"></div>
</div>



<div th:replace="common/mall-common::mall-footer"></div>
</body>
</html>